public class StringBuilderTest {
    static public void main(String [] args) {
        StringBuilder bStr = new StringBuilder();
        // StringBuffer bStr = new StringBuffer();
        String str = "";
        char ch = ' ';

        for (int i = 0; i < 100000; ++i) {
            ch = (char)(Math.random() * 26 + 'A');
            // str += ch;
            bStr.append(ch);
        }
        // System.out.printf("str = %s\n", str);
        // System.out.printf("str = %s\n", bStr.toString());

/*
 *         bStr.append("!");
 *         bStr.append("HELLO");
 *         bStr.replace(3, 4, "KYO");
 *
 *         System.out.printf("bStr = %s\n", bStr.toString());
 */

    }
}
